package com.hdoit.apollo.logical.stock.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.Entity;

import com.hdoit.apollo.logical.cargo.model.Collocation;
import com.hdoit.apollo.logical.purchase.model.PurchaseCollocation;
import com.tennetcn.data.message.ModelBase;
/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年04月02日 14:12:58
 * @comment
 */
@Entity
@Table(name="stock_out_stock_collocation")
public class OutStockCollocation extends ModelBase{
    //id
    @Id
    @Column(name="outStockCollocationId")
    private String outStockCollocationId;
    
    //发货单关联原Id
    @Column(name="outStockCollocationIdYuan")
    private String outStockCollocationIdYuan;

    //货物规格属性搭配表Id
    @Column(name="collocationId")
    private String collocationId;
    
    //出库详情Id
    @Column(name="showId")
    private String showId;
    
    //出库数//采购退货数
    @Column(name="collocationNum")
    private Double collocationNum;

    //尚欠数
    @Column(name="collocationDebt")
    private Double collocationDebt;
    
    //发货数
    @Column(name="sendCargoNum")
    private Double sendCargoNum;
    
    //退欠货数
    @Column(name="returnCargoNumCollocation")
    private Double returnCargoNumCollocation;
    
    //实际出售价格//或采购退货实际价格
    @Column(name="realPrice")
    private Double realPrice;

    
    //客户Id(方便查找)
    @Column(name="customerId")
    private String customerId;
    
    //门店id
    @Column(name="shopId")
    private String shopId;

    //创建时间
    @Column(name="createDate")
    private Date createDate;

    //创建人id
    @Column(name="createUserId")
    private String createUserId;

    //创建人名称
    @Column(name="createUserName")
    private String createUserName;

    //修改时间
    @Column(name="modifyDate")
    private Date modifyDate;

    //修改人id
    @Column(name="modifyUserId")
    private String modifyUserId;

    //修改人名称
    @Column(name="modifyUserName")
    private String modifyUserName;

    //删除标记
    @Column(name="deleteMark")
    private Integer deleteMark;
    
    //备注
    @Column(name="comment")
    private String comment;
    
    @Transient
    private Collocation collocation;
    
    //采购退货标记查询
    @Transient
    private PurchaseCollocation purchaseCollocation;
    
    //ionic 标记字段(与ionic进行数据对接)
    @Transient
    private Double ionicRealPrice;
    
    //ionic 标记字段(与ionic进行数据对接)
    @Transient
    private StockCollocation stockCollocation;
    
    @Column(name="unit")
    private String unit;
    
    @Column(name="ratio")
    private Double ratio;
    
    public String getOutStockCollocationIdYuan() {
		return outStockCollocationIdYuan;
	}
	public void setOutStockCollocationIdYuan(String outStockCollocationIdYuan) {
		this.outStockCollocationIdYuan = outStockCollocationIdYuan;
	}
	public PurchaseCollocation getPurchaseCollocation() {
		return purchaseCollocation;
	}
	public void setPurchaseCollocation(PurchaseCollocation purchaseCollocation) {
		this.purchaseCollocation = purchaseCollocation;
	}
	public Double getReturnCargoNumCollocation() {
		return returnCargoNumCollocation;
	}
	public void setReturnCargoNumCollocation(Double returnCargoNumCollocation) {
		this.returnCargoNumCollocation = returnCargoNumCollocation;
	}
	public Double getSendCargoNum() {
		return sendCargoNum;
	}
	public void setSendCargoNum(Double sendCargoNum) {
		this.sendCargoNum = sendCargoNum;
	}
	public Double getIonicRealPrice() {
		return ionicRealPrice;
	}
	public void setIonicRealPrice(Double ionicRealPrice) {
		this.ionicRealPrice = ionicRealPrice;
	}
	public String getCustomerId() {
		return customerId;
	}
	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}
	public Double getRealPrice() {
		return realPrice;
	}
	public void setRealPrice(Double realPrice) {
		this.realPrice = realPrice;
	}
	public StockCollocation getStockCollocation() {
		return stockCollocation;
	}
	public void setStockCollocation(StockCollocation stockCollocation) {
		this.stockCollocation = stockCollocation;
	}
	public String getShowId() {
		return showId;
	}
	public void setShowId(String showId) {
		this.showId = showId;
	}
	public Collocation getCollocation() {
		return collocation;
	}
	public void setCollocation(Collocation collocation) {
		this.collocation = collocation;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}

    public String getOutStockCollocationId(){
        return this.outStockCollocationId;
    }
    public void setOutStockCollocationId(String outStockCollocationId){
         this.outStockCollocationId=outStockCollocationId;
    }

    public String getCollocationId(){
        return this.collocationId;
    }
    public void setCollocationId(String collocationId){
         this.collocationId=collocationId;
    }

    public Double getCollocationNum(){
        return this.collocationNum;
    }
    public void setCollocationNum(Double collocationNum){
         this.collocationNum=collocationNum;
    }

    public Double getCollocationDebt(){
        return this.collocationDebt;
    }
    public void setCollocationDebt(Double collocationDebt){
         this.collocationDebt=collocationDebt;
    }

    public String getShopId(){
        return this.shopId;
    }
    public void setShopId(String shopId){
         this.shopId=shopId;
    }

    public Date getCreateDate(){
        return this.createDate;
    }
    public void setCreateDate(Date createDate){
         this.createDate=createDate;
    }

    public String getCreateUserId(){
        return this.createUserId;
    }
    public void setCreateUserId(String createUserId){
         this.createUserId=createUserId;
    }

    public String getCreateUserName(){
        return this.createUserName;
    }
    public void setCreateUserName(String createUserName){
         this.createUserName=createUserName;
    }

    public Date getModifyDate(){
        return this.modifyDate;
    }
    public void setModifyDate(Date modifyDate){
         this.modifyDate=modifyDate;
    }

    public String getModifyUserId(){
        return this.modifyUserId;
    }
    public void setModifyUserId(String modifyUserId){
         this.modifyUserId=modifyUserId;
    }

    public String getModifyUserName(){
        return this.modifyUserName;
    }
    public void setModifyUserName(String modifyUserName){
         this.modifyUserName=modifyUserName;
    }

    public Integer getDeleteMark(){
        return this.deleteMark;
    }
    public void setDeleteMark(Integer deleteMark){
         this.deleteMark=deleteMark;
    }
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public Double getRatio() {
		return ratio;
	}
	public void setRatio(Double ratio) {
		this.ratio = ratio;
	}

}